]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Extend ScreenshotArea parameter validation
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 4 Nov 2013 10:14:44 +0000 (11:14 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 4 Nov 2013 15:21:45 +0000 (16:21 +0100)
commitf9f500490974e4bf5c4824fa596ae133995bb7ef
treeef96f129d1f7045227557d013dcb8dc945f46851
parent4f7014b2d58acb1827b65718c936617aa6ae5189
screenshot: Extend ScreenshotArea parameter validation

We currently only ensure that width and height are positive, so it
is still possible to pass in values that don't make any sense at all
(which may even result in a crash when exceeding limits imposed by
X11).
There is nothing to screenshot outside the actual screen area, so
restrict the parameters to that.

https://bugzilla.gnome.org/show_bug.cgi?id=699752
js/ui/screenshot.js